package com.twentyOne.ClothingLand.dao.impl;

import org.hibernate.Session;
import org.hibernate.Transaction;

import com.twentyOne.ClothingLand.dao.BaseDAO;
import com.twentyOne.ClothingLand.dao.IReturnGoodsItemDAO;
import com.twentyOne.ClothingLand.vo.ReturnGoodsItem;

public class ReturnGoodsItemDAO extends BaseDAO implements IReturnGoodsItemDAO {

	@Override
	public void addReturnGoodsItem(ReturnGoodsItem item) {
		
		Session session = getSession();
		Transaction tx = session.beginTransaction();
		session.save(item);
		tx.commit();
		session.close();
		
	}

}
